/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package niezalogowany;

import java.util.ArrayList;

/**
 *Klasa widoku 'przegladajKsiazki'
 * @author Michał Budziło
 */
public class PrzegladajKsiazkiManager {

    static int  t=1;
    private ArrayList<KsiazkaData> dataList;
    public PrzegladajKsiazkiDAO dao;
    private String selectedString;
    private KsiazkaData currentItem;
    
    public PrzegladajKsiazkiManager()
    {
        t++;
        dao = new PrzegladajKsiazkiDAO();
        dataList = new ArrayList<KsiazkaData>();
        currentItem = new KsiazkaData();
        
    }
    

    public void  getListaKsiazek()
    {
        System.out.println("pobierz");
        dataList = dao.getListaKsiazek(selectedString);
        
    }

    public ArrayList<KsiazkaData> getDataList() {
        return dataList;
    }

    public void setDataList(ArrayList<KsiazkaData> dataList) {
        this.dataList = dataList;
    }

    public String getSelectedString() {
        return selectedString;
    }

    public void setSelectedString(String selectedString) {
        this.selectedString = selectedString;
    }

    public KsiazkaData getCurrentItem() {
        return currentItem;
    }

    public void setCurrentItem(KsiazkaData currentItem) {
        this.currentItem = currentItem;
    }
    
    
    
    
}
